/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.ohuyo.libra.server.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 
 * @author rabbit
 * @date 2010-3-2
 * @time 18:43:53
 */
public class GeneralQuartzJobBean extends QuartzJobBean {

    private Job job;

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    @Override
    protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
        job.doJob(context);
    }
}
